package yuznu;

public class Student {
    private int id;
    private String name;
    private String class1;
    private String sex;

    public Student(int id,String name,String class1,String sex) {
        this.id=id;
        this.name=name;
        this.class1=class1;
        this.sex=sex;
    }

    public int getId(){
        return id;
    }
    public void setId(int id){
        this.id=id;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name=name;
    }
    public String getClass1(){
        return class1;
    }
    public void setClass1(String class1){
        this.class1=class1;
    }
    public String getSex(){
        return sex;
    }
    public void setSex(String sex){
        this.sex=sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "学号='" + id + '\'' +
                ", 姓名='" + name + '\'' +
                ", 班级='" + class1 + '\'' +
                ", 性别='" + sex + '\'' +
                '}';
    }
}